from .views import views,enterprise, spit
from django.urls import re_path
urlpatterns = [
    re_path(r'^gatherings/$',views.GatheringsList.as_view()),
    re_path(r'^gatherings/(?P<id>\d+)/$',views.GatheringsGetView.as_view()),
    re_path(r'^gatherings/(?P<id>\d+)/join/$',views.PostGatheringView.as_view()),
    re_path(r'^enterprise/(?P<id>\d+)/visit/$',enterprise.EnterpriseCreateView.as_view()),
    re_path(r'^recruits/(?P<id>\d+)/$',enterprise.RecruitsGetView.as_view()),
    re_path(r'^enterprise/(?P<id>\d+)/collect/$',enterprise.PostEnterpriseView.as_view()),
    re_path(r'^enterprise/(?P<id>\d+)/cancelcollect/$',enterprise.SBquxiao.as_view()),
    re_path(r'^recruits/(?P<id>\d+)/collect/$',enterprise.PostRecruitsView.as_view()),
    re_path(r'^recruits/(?P<id>\d+)/visit/$',enterprise.RecruitsCreateView.as_view()),
    re_path(r'^spit/(?P<id>\d+)/children/$', spit.SpitAPIView.as_view()),
    re_path(r'^enterprise/(?P<id>\d+)/$',enterprise.EnterpriseGetView.as_view()),

]
